home *** CD-ROM | disk | FTP | other *** search
/ Champak 138 / Volume 138 Aug 19 2011 - Damaged.iso / Games / shore_siege.swf / scripts / DefineSprite_456 / frame_1 / PlaceObject2_20_enemy_Bomb_312 / CLIPACTIONRECORD onClipEvent(enterFrame).as < prev    next >
Text File  |  2011-08-19  |  847b  |  39 lines

  1. onClipEvent(enterFrame){
  2.    if(active == false && armed == false)
  3.    {
  4.       _X = _X + (xPos - _X) / 5;
  5.       _Y = _Y + (yPos - _Y) / 5;
  6.    }
  7.    else if(active == true && armed == false)
  8.    {
  9.       _parent.mouseState = 4;
  10.       _parent.changeStateFlag = 0;
  11.       _X = _X + (_root._xmouse - _X) / 2;
  12.       _Y = _Y + (_root._ymouse - _Y) / 2;
  13.       if(_parent.AIM._y > 300)
  14.       {
  15.          _parent.AIM.flapS._visible = false;
  16.       }
  17.       else
  18.       {
  19.          _parent.AIM.flapS._visible = true;
  20.       }
  21.       if(_parent.AIM._y < 280)
  22.       {
  23.          _parent.AIM.flapN._visible = false;
  24.       }
  25.       else
  26.       {
  27.          _parent.AIM.flapN._visible = true;
  28.       }
  29.       if(_parent.AIM._visible == true)
  30.       {
  31.          _visible = false;
  32.       }
  33.       else
  34.       {
  35.          _visible = true;
  36.       }
  37.    }
  38. }
  39.